using System;

namespace Cfg.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class DefaultAttribute : Attribute
    {
        public string[] Contexts { get; private set; }

        //public string DefaultValueString { get; private set; }
        public object DefaultValue { get; private set; }
        /*
        [Obsolete]
        public DefaultAttribute(string defaultValue)
        {
            DefaultValueString = defaultValue;
        }
        */
        public DefaultAttribute(object defaultValue, params  string[] contexts)
        {
            Contexts = contexts;
            DefaultValue = defaultValue;
        }
    }
}